#!/bin/sh

# OpenBSD-specific startup script for Architect.
# $OpenBSD: architect,v 1.1.1.1 2007/01/13 01:01:34 ian Exp $

ARCHITECT_HOME=/usr/local/architect

JAVA_CMD=`javaPathHelper -c architect`

if [ -z ${JAVA_CMD} ]; then
	echo "$0: JAVA_CMD is not set, please check installation" >&2
	exit 1
fi

for f in ${ARCHITECT_HOME}/*.jar
do
	CLASSPATH=${CLASSPATH}:$f
done

${JAVA_CMD} -cp ${CLASSPATH} ca.sqlpower.architect.swingui.ArchitectFrame $*
